/*
 * @Author: ZhaoChenGuang
 * @Date: 2025-01-16 10:02:14
 * @Description:
 */
import type { UserInfo } from '@vben/types';

import { requestClient } from '#/api/request';

/**
 * 获取用户信息
 */
export async function getUserInfoApi() {
  return requestClient.get<UserInfo>('/admin/users/me');
}

// 获取全部用户
export async function getUsers(parmas: any) {
  return requestClient.get('/admin/users', { params: parmas });
}

export async function resetPwd(id: any) {
  return requestClient.put(`/admin/users/reset/${id}`);
}
